<extend name="Public/base"/>
<block name="head">
	<link href="__NEW_CSS__/goods.css" rel="stylesheet" />
	<link href="__CSS__/pointsmall.css" rel="stylesheet" />
</block>
<block name="body">
	
    <div class="container">
        <!-- 面包屑 -->
        <div class="place-show">
            <div class="place-explain fl">
                <a href="{:U('Index/index')}">{:C('WEB_SITE_TITLE')}</a>
                &gt;
                <a href="{:U('Goods/cate',array('id'=>$goods['cate_id']))}">{$goods['cate_id']|get_goods_category_name}</a>
                &gt;
               {$goods['name']}
            </div>
        </div>
        <!--items start-->
        <div class="row">
	        <div class="col-md-9">
	            <div class="col-md-12 ">
	                <div class="col-md-5">
	                    <a class="show_big buy" title="{$goods['name']}">
	                        
	                        <img alt="{$goods['name']}" src="{$goods['pic_url']|get_image_url}" height="310" width="310">
	                    </a>
	                </div>
	                <div class="price-info pr col-md-7">
	                    <h3 class="title">{$goods['name']}</h3>
	                    <p class="body_price clear">
	                        <span class="price_f fl buy">
	                            <em class="price-ico">所需积分:</em>
	                            <span class="price">{$goods['price']|ceil}</span>
	                           
	                        </span>
	                    </p>
	                   
	                    <p class="btn">
	                        <button class="go_btn buy fl" onclick="addToCart({$goods['id']})">
	                            <span>立即兑换</span>
	                        </button>
	                       
	                    </p>
	                </div>
	            </div>
	           
	            <div class="bady-part col-md-12" style="margin-top: 20px;">
	                <div class="bady-tab bady_bg clear" id="bady-tab">
	                    <ul class="fl">
	                        <li><a class="active" href="javascript:;">详情</a>
	                        </li>
	                    </ul>
	                   
	                </div>
	
	                <div class="con">
	                    <div style="padding-top:20px;" class="information">
	                        
	                        <div class="bady_info">
	                            <h3>
	                                <div class="line"></div>
	                                <div class="line-txt">描述
	                                    <a name="ms"></a>
	                                </div>
	                            </h3>
	                            <div class="info_s1 clear" id='gdetial'>
	                                <if condition="$goods['item_body']">
	                                    {$goods['item_body']}
	                                <else/>
	                              
	                                 <script>
											var url = "<php>echo $goods['item_url']</php>";
											$.get('{:U("Goods/ajGetGoodsDetial")}',{url:url},function(data){
												if(data.status){
													$("#gdetial").html(data.content);
												}else{
													$("#gdetial").append(data);
												}
												
												
											});
	                                </script>
	                                    商品详情加载中，请稍等...
	                                </if>
	                            </div>
	                        </div>
	                    </div>
	
	                </div>
	            </div>
	        </div>
	        <div class=" col-md-3">
	            <div class="hot_goods">
	                <h3>
	                    <div class="line"></div>
	                    <div class="line-txt">HOT同类热卖</div>
	                </h3>
	                <ul>
	                    <volist name="hot_goods" id="v">
	                    <li>
	                        <a target="_blank" href="{:U('goods/info',array('id'=>$v['id']))}">
	                            <img class="lazy img-responsive" src="{$v.pic_url}" alt="{$v.name}">
	                            <div class="hot_price">
	                                <em class="hot_yang">￥</em>
	                                <em class="hot_num">{$v.price}</em>
	                            </div>
	                        </a>
	                    </li>
	                    </volist>
	                </ul>
	            </div>
	        </div>
    </div>
</div>
    <!-- /主体 -->
  
  

</block>

